package mysql

import "gorm.io/gorm"

type Goods struct {
	gorm.Model
	GoodsImg    string  `gorm:"type:varchar(500);not null;"`
	GoodsName   string  `gorm:"type:varchar(10);not null;"`
	GoodsNum    int     `gorm:"type:varchar(300);not null;"`
	GoodsPrice  float64 `gorm:"type:decimal(10,2);not null;"`
	GoodsStatus int     `gorm:"type:tinyint(1);default:1;not null;comment:'商品状态:1-已上架,2-未上架'"`
}

type User struct {
	gorm.Model
	UserName string `gorm:"type:varchar(20);not null;"`
	PassWord string `gorm:"type:varchar(50);not null;"`
}
